#ifndef _USER_TYPE_H___
#define _USER_TYPE_H___

typedef unsigned char          BYTE ;
typedef char                   BOOL ;
typedef short int              WORD  ;
typedef int                    DWORD ;
typedef unsigned int           UDWORD;

typedef unsigned short         uint16;
typedef signed short           int16 ;
typedef int                    int32 ;
typedef unsigned int           uint32;
typedef char                   int8  ;
typedef unsigned char          uint8 ;
typedef  void (*pFunction)(void);

typedef struct Buf
{
  uint16  Head ;
  uint16  Rear ;
  BYTE  *pbuf;
  uint16  Length ;
  uint16 n16bufSize ;
}CBuf,*pBuf;

#define TRUE    1
#define FALSE   0
#define BOOT_ADDRESS     (uint32)0x08000000
#define FLASH_VTOR_OFFSET     (uint32)0x4000

#define  STARTADDR  0x0801FF00
#define  SCREEN_ID_ADDR  0x0800FC00
extern uint16   g_board_ID;

extern void medey(int ms);
extern void ApplicationJumpToBoot(uint32  app_address);
extern void app_deinit();
#endif
